package com.i_art_engineer.meigong.photo.filter.effect;

import android.content.Context;

import com.i_art_engineer.meigong.R;
import com.i_art_engineer.meigong.util.ImageUtils;

public class OriginFilter extends EffectFilter {

    public static final String SHADER = "precision lowp float;\n" +
            " precision lowp float;\n" +
            " varying highp vec2 textureCoordinate;\n" +
            " \n" +
            " uniform sampler2D inputImageTexture;\n" +
//            " uniform sampler2D inputImageTexture2;\n" +
            "\n" +
            " void main()\n" +
            " {\n" +
            "     \n" +
            "     vec3 texel = texture2D(inputImageTexture, textureCoordinate).rgb;\n" +
            "     \n" +
//            "texel = vec3(\n" +
//            "                  texture2D(inputImageTexture2, vec2(texel.r, .1666666)).r,\n" +
//            "                  texture2D(inputImageTexture2, vec2(texel.g, .5)).g,\n" +
//            "                  texture2D(inputImageTexture2, vec2(texel.b, .8333333)).b\n" +
//            "                  );\n"+
            "     gl_FragColor = vec4(texel, 1.0);\n" +
            " }";

    public OriginFilter(Context context) {
        super(SHADER, 0);
//        bitmaps[0] =  ImageUtils.readBitMap(context, R.drawable.ziranlinemap3);
    }

}
